/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.fyx.mula.ejb;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import org.fyx.secure.entity.SecureRole;
import org.fyx.secure.ejb.SecureLocal;

/**
 *
 * @author ydenek
 */
@Stateless
public class MulaInstall implements MulaInstallLocal {
    @EJB
    private SecureLocal secure;

    @Override
    public void install() {
        SecureRole languageManager = new SecureRole();
        languageManager.setCode(MulaRoles.LANGUAGE_MANAGER);
        languageManager.setTitle("Language manager");
        languageManager.setDescription("Languages");
        secure.addRole(languageManager);
    }
    
}
